package com.lsk.order.Interception;


import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.pqc.jcajce.provider.util.SpecUtil;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
@Slf4j
public class FeignInterception implements RequestInterceptor {


    @Override
    public void apply(RequestTemplate requestTemplate) {
        log.info("feign拦截器.....");
        requestTemplate.header("x-token", UUID.randomUUID().toString());
    }
}
